NavigateToWaypointCommand

class NavigateToWaypointCommand(latitude: Double, longitude: Double, altitude: Double, yaw: Double, holdTime: Double = DEFAULT_HOLD_TIME, acceptanceRadius: Double = DEFAULT_ACCEPTANCE_RADIUS, frame: MavlinkCommand.Frame = Frame.RELATIVE) : MavlinkCommand

MAVLink command which allows to navigate to a waypoint.

Parameters

latitude

latitude of the waypoint, in degrees

longitude

longitude of the waypoint, in degrees

altitude

altitude of the waypoint above take off point, in meters

yaw

desired yaw angle at waypoint, relative to the North in degrees (clockwise)

holdTime

time to stay at waypoint, in seconds

acceptanceRadius

acceptance radius, in meters, if the sphere with this radius is hit, the waypoint counts as reached.

frame

the reference frame of the coordinates.

Constructors

Link copied to clipboard
constructor(latitude: Double, longitude: Double, altitude: Double, yaw: Double, holdTime: Double = DEFAULT_HOLD_TIME, acceptanceRadius: Double = DEFAULT_ACCEPTANCE_RADIUS, frame: MavlinkCommand.Frame = Frame.RELATIVE)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Acceptance radius, in meters, if the sphere with this radius is hit, the waypoint counts as reached.

Link copied to clipboard

Altitude of the waypoint above take off point, in meters

Link copied to clipboard
Link copied to clipboard

The coordinate frame; set to global coordinate frame or relative altitude over ground.

Link copied to clipboard

Time to stay at waypoint, in seconds

Link copied to clipboard

Latitude of the waypoint, in degrees

Link copied to clipboard

Longitude of the waypoint, in degrees

Link copied to clipboard

the raw parameters of the command

Link copied to clipboard

The MAVLink command type

Link copied to clipboard
val yaw: Double

Desired yaw angle at waypoint, relative to the North in degrees (clockwise)

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
fun write(writer: Writer, index: Int, frame: MavlinkCommand.Frame)

Writes the MAVLink command to the given writer.